Mud: Use nginx to build a WordPress blog using a virtual host, nginxwordpress
This article was sponsored by Xiuyi linfeng and first launched in the dark world.
Recently, I plan to learn about nginx web servers. Since it is learning or practical. We will build a WordPress blog here as an example.
To build a WordPress
linux, we recommend that you install the virtual host panel AMH. For more information, see: install the AMH4.2 virtual host panel.
Update: I am too busy to get my driver's license. My girlfriend had no time to get online a few days ago. Take the time to update today.
Click http://shang.qq.com/wpa/qunwpa? Idkey = ba36ddc26faeeb84153430641f02e5d34ddbce3964ee945abbde0a9b002a118b
Or scan the QR code to join t
-fpm.confcp php-fpm.d/www.conf.default php-fpm.d/www.confservice php-fpm start Installing MARIADB There is no more talk about MARAIDB installation, the previous blog has detailed MARIADB deployment details. It is recommended that the direct Yum installation is good. Configuration file Modification Modifying the HTTPD Host 1. Support Agent Modulevim /app/httpd24/conf/httpd.conf#取消下面两行的注释LoadModule proxy_module modules/mod_proxy.soLoadModule prox
WordPress is currently the most popular and popular blog program in the world. it has powerful functions, simple operations, and is favored by many bloggers, some new users may encounter one or another problems when installing the WordPress program, which may be caused by the problems of the bloggers themselves or by the impact of virtual hosts. To facilitate beginners, quick
Wordpress. As follows:
/Etc/init. d/mysqld start
Modify the password of the root user of the MySQL database. The default password of the root user is blank after the MySQL database is installed. Run the following command:
Mysql-u root-P or MySQL-uroot-P
Use MySQL;
Update user SET Password = PASSWORD ('000000') where user = 'root ';
Flush privileges;
/Etc/init. d/mysqld restart
By default, the MySQL database only allows local access to t
Many cloud hosts have student concessions, so I took advantage of the current freshman bought a 1 yuan Cloud host + free CN domain Name (high school students will not think of the words). Since I only know to use the server to install the blog, other uses do not understand, so I went to install WordPress.
And because I see the tutorial a bit of a problem, some problems search engine can not solve, I either
choose which kind of good? According to the author's humble opinion, the choice of/%postname%/structure is better. Why do you say that? To choose the former, the search engine actually treats your article as the homepage of the website subdirectory, and chooses the latter as an HTML document under the root directory. Then, the subdirectory of the first page and the root of the ordinary pages of the high weight? should be the first page of the level two directory, so I recommend the use of the f
database and delete the previous database associated with WP (if you do not have to do this), you will be having problems importing the database later.3. Create a new library in phpMyAdmin, note that the library name must be consistent with the original computer or there will be a database link error, encoding mode select Utf8_general_ci;4. Open the SQL file you want to import, add a line to the top of use XX; note that xx corresponds to the name of the database you are about to import.5. In ph
1. Build a VPN
First, go to the configuration panel of VPS.
The system is CentOS 5 32bit. Reload the system to complete the entire process.
Use Xshell 4 to connect to the remote host and change the initial password.
Directly use the PPTPD one-click installation package.
1wget http://www.diahosting.com/dload/pptpd.sh sh pptpd.shWait a few minutes. The following image is displayed after the installation is complete.The bottom line is the VPN account
Copy the code to the Httpd.ini file
[Isapi_rewrite]
# 3600 = 1 hour
Cacheclockrate 3600
Repeatlimit 32
# Protect Httpd.ini and Httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
Rewriterule/sitemap.xml/sitemap.xml [L]
Rewriterule/favicon.ico/favicon.ico [L]
# for file-based WordPress content (i.e. theme), admin, etc.
rewriterule/wp-(. *)/wp-$1 [L]
# for normal
are not teasing me. From last night, there have been some solutions related to x×× 502, it was a pity that the problem had not been solved until noon today. Then there was a prompt that it was a firewall problem. I shut down the firewall, and it was amazing ???
5. nginx: [emerg] "location" directive is not allowed here in/etc/nginx/CONF. d/Default. conf: 1As with the third configuration file ~
Gracefully shutting down PHP-FPM warning, no PID file found-PHP-FPM is not running?Starting PHP-FPM
The domain name of jingbo has been changed from essentialblog.cn to jingpin.org. The following describes how to change the domain name.
I. Operations on cpanel:
You can perform the following four steps on the cpanel of the Host:
Step 1: add additional domain names
Find the "Additional domain" option on the cpanel control panel and add your new domain name.
Step 2: Add a database
Generate a new database in the MySQL database.
Step 3
It's been a whole afternoon today.The first is the mailbox, WAN host is not supported by the mail () function, so the default is not available, if you want to send messages, you can only use the Fsockopen () function. First go to WAN Network host management platform, enable Fsockopen.The second step is to change the php file, find the class-smtp.php under the Wp-includes folder, open it with notepad++, pull
HiChina hosts all seem to need to send emails through SMTP, and enable fsockopen. However, the SMTP sending method of WordPress is steam_connect_client instead of fsockopen.
HiChina hosts all seem to need to send emails through SMTP, and to enable fsockopen (this can be enabled in HiChina background. if not, please contact HiChina customer service ). But the SMTP sending method of WordPress is steam_connect
built.The new user is then added to the newly built database.By this point, the whole preparatory work has been completed. Next, make the most important site data transfer operations.Fourth step: Back up the site dataHere are two ways of doing this:First, the original host space files with FTP tools to download to the local, the original database export, as well as the article List export.Second, using the installation
More than 20 days of preparation-case audit down, the space is not stable, the site a lot of problems, not open slow is the wrong page, so change a host, moved back to the domestic finally stabilized, the middle encountered a lot of problems. Now for everyone to share the next Jasper blog site move process it.First to the original host space back up the site data:There are two types of backup data: Backup o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.